from django.db import models
from django.contrib.auth.models import AbstractUser
from authapp.manager import UserManager

class User(AbstractUser):
    username = None
    email = models.EmailField(max_length = 254, unique=True)

    objects = UserManager()

    USERNAME_FIELD = 'email'
    REQUIRED_FIELDS = []
